import 'package:dio/dio.dart';
import 'package:thinking/config/_.dart';
import 'package:thinking/entity/_.dart';
import 'package:thinking/http/Dio.dart';

class HistoryService{

  static Future<List<HistorySplashItem>?> getHistorySplashData({Map<String,dynamic>? params}) async{

    var res = await HttpApi().get(url: Config.apiUrl['ApiList']['getHistorySplashData'],params: params,options:Options(extra:{'showLoading':false}));
    return HistorySplashEntity.fromJson(res).data;

  }

  static Future<HomeResult> getHistoryThink({Map<String,dynamic>? params}) async{
    var res = await HttpApi().get(url: Config.apiUrl['ApiList']['getHistoryThink'],params: params,options:Options(extra:{'showLoading':false}));
    return HomeResult.fromJson(res['data']);

  }

}